<?php

namespace app\admin\validate\entity;

use think\Validate;

class EntityDjEquipmentTypeValidate extends Validate
{
    protected $rule=array(
        "id"=>"require",
        "title"=>"require",
        "pid"=>"require",
        "status"=>"require",
        "sort"=>"require",
    );
    protected $message=array(
        "id|require"=>"id为空",
        "title|require"=>"标题不能为空",
        "pid|require"=>"请选择上级分类",
        "status|require"=>"请选择是否展示",
        "sort|require"=>"请输入排序值",
    );
    protected $scene=array(
        "create"=>array("title","sort","status","pid"),
        "update"=>array("id","title","sort","status","pid"),
    );
}